package com.emep.changzhi.analyse.entity.information;

import lombok.Data;
import org.springframework.data.cassandra.core.cql.Ordering;
import org.springframework.data.cassandra.core.cql.PrimaryKeyType;
import org.springframework.data.cassandra.core.mapping.Column;
import org.springframework.data.cassandra.core.mapping.PrimaryKeyColumn;
import org.springframework.data.cassandra.core.mapping.Table;
import java.io.Serializable;

/**
 * @author Wangcc
 * @version V1.0
 * @Description: 消息推送记录表
 * @date 2018/2/27 16:22
 */
@Data
@Table(value = "data_message_record_warning")
public class DataMessageRecordWarning implements Serializable{

    private static final long serialVersionUID = 6632626257205260891L;

    @PrimaryKeyColumn(name = "id", ordinal = 0, type = PrimaryKeyType.PARTITIONED)
    private String id;
    /**
     * 模版id
     */
    @Column(value = "template_id")
    private String templateId;
    /**
     * 辖区行政编码
     */
    @Column(value = "area_code")
    private String areaCode;
    /**
     * 报警信息id
     */
    @Column(value = "Prompt_id")
    private String PromptId;
    /**
     * 设备id
     */
    @Column(value = "equipment_id")
    private String equipmentId;
    /**
     * 发送时间
     */
    @PrimaryKeyColumn(name = "send_date", ordinal = 1, type = PrimaryKeyType.CLUSTERED, ordering = Ordering.DESCENDING)
    private String sendDate;
    /**
     * 推送内容
     */
    @Column(value = "push_content")
    private String pushContent;
    /**
     * 录入时间
     */
    @Column(value = "create_date")
    private String createDate = String.valueOf(System.currentTimeMillis());
    /**
     * 是否删除
     */
    @Column(value = "is_delete")
    private String isDelete = "0";


}
